<?php defined('SYSPATH') or die('No direct access allowed.');


class Model_Country extends ORM {

    protected $_primary_key = 'iso3';
    
    public function get_all()
    {
        $all = $this->order_by('name')->find_all()->as_array('iso3', 'name');

        foreach($all as &$one)
        {
            $one = __($one);
        }
        asort($all);
        return $all;
    }
}